package com.hzjy.api.controller;

import java.util.List;

import com.hzjy.api.beans.SysCommonProblem;
import com.hzjy.api.service.impl.SysCommonProblemServiceImpl;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.hzjy.common.core.controller.BaseController;
import com.hzjy.common.core.page.TableDataInfo;

/**
 * 常见问题Controller
 * 
 * @author hzjy
 * @date 2020-09-05
 */
@RestController
@RequestMapping("/api/problem")
public class SysCommonProblemController extends BaseController
{
    @Autowired
    private SysCommonProblemServiceImpl sysCommonProblemService;

    /**
     * 查询常见问题列表
     */
    @GetMapping("/list")
    public TableDataInfo list(SysCommonProblem sysCommonProblem)
    {
        startPage();
        List<SysCommonProblem> list = sysCommonProblemService.selectSysCommonProblemList(sysCommonProblem);
        return getDataTable(list);
    }
}
